package com.shouhuobao.take.wallet;

import android.content.Intent;
import android.view.View;

import com.iseastar.BaseActivity2;
import com.iseastar.guojiang.app.WebViewActivity;
import com.shouhuobao.station.R;

import droid.frame.activity.title.TitleRes;

/**
 * Created by joker on 2017/8/5.
 * 我的钱包
 */
public class MyWalletActivity extends BaseActivity2 implements View.OnClickListener {

    @Override
    protected void findViewById() {
        setContentView(R.layout.activity_wallet_my);
        super.findViewById();
        getAppTitle().setCommonTitle("我的钱包",new TitleRes("帮助中心", new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getContext(),WebViewActivity.class);
                intent.putExtra("title","帮助中心");
                startActivity(intent);
            }
        }));
        //资金记录
        findViewById(R.id.capital_history_TV).setOnClickListener(this);
        //提现管理
        findViewById(R.id.cash_management_TV).setOnClickListener(this);
        //微信账号
        findViewById(R.id.wechat_accout_TV).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent = null;
        switch (v.getId()) {
            //资金记录
            case R.id.capital_history_TV:
                intent = new Intent(getContext(), CapitalHistoryActivity.class);
                startActivity(intent);
                break;
            //提现管理
            case R.id.cash_management_TV:
                intent = new Intent(getContext(), TakeMoneyFromAccoutActivity.class);
                startActivity(intent);
                break;
            //微信账号
            case R.id.wechat_accout_TV:
                intent = new Intent(getContext(), BindWXAccoutActivity.class);
                intent.putExtra("isFrom", 0);
                startActivity(intent);
                break;
        }
    }
}
